export const getUserInfo = (state, getters) => {
    try {
        const value = uni.getStorageSync('bht_userInfo');
        console.log('value', value);
        console.log('Object', Object.keys(state.userInfo).length);
        if (value) {
            return Object.keys(state.userInfo).length > 1
                ? state.userInfo
                : value;
        }
    } catch (e) {}
};
export const getMachineDetails = (state, getters) => {
    return state.machine;
};
export const getBuyInfo = (state, getters) => {
    return state.buyInfo;
};
export const getSellInfo = (state, getters) => {
    return state.sellInfo;
};
export const gteActivityDetails = (state, getters) => {
    return state.acticity;
};
export const gteActivityDirectDetails = (state, getters) => {
    return state.activityDirect;
};
export const gteRecordBuyDetails = (state, getters) => {
    return state.recordBuy;
};
export const gteRecordSeelDetails = (state, getters) => {
    return state.recordSeel;
};
export const getUpdate = (state, getters) => {
    return state.update;
};
